<script>
import storageOperation from "/utils/index";
export default {
  onLaunch: function () {
    console.log("App Launch");
    const { value, error } = storageOperation.getStorageSync("loginStatus");
    const fromPage = storageOperation.getStorageSync("fromPage").value;
    if (!error && value && fromPage === "login-page") {
      uni.switchTab({
        url: "/pages/home/home",
      });
    }
  },
  onShow: function () {
    console.log("App Show");
  },
  onHide: function () {
    console.log("App Hide");
  },
};
</script>

<style>
/*每个页面公共css */
@import "style/uni-ui.scss";
</style>
